From 37ae067f0e1e610b805ae0d0c1fb43b21e192519 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Wed, 27 Jun 2012 14:14:40 +0000 Subject: [PATCH] Fix hardcoded GPS time->UTC offset in Skytraq. --- gpsbabel/skytraq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/skytraq.c b/gpsbabel/skytraq.c index 6edeb1469..1f9e30a80 100644 --- a/gpsbabel/skytraq.c +++ b/gpsbabel/skytraq.c @@ -553,9 +553,9 @@ static time_t gpstime_to_timet(int week, int sec) { /* TODO: make leap second compensation more general - * (the windows software seems to correct by 13). + * (the windows software seems to correct by a magic amount). */ - return (315964800 + (week+1024)*7*SECONDS_PER_DAY + sec - 13); + return (315964800 + (week+1024)*7*SECONDS_PER_DAY + sec - 16); } static void -- 2.30.2